<{php}>

$title = "标题";
$keywords = "关键字";
$description = "描述";

if(isset($config['download_seo_title']['cvalue'])){
$title = $config['download_seo_title']['cvalue'];
}
if(isset($config['download_seo_keywords']['cvalue'])){
$keywords = $config['download_seo_keywords']['cvalue'];
}
if(isset($config['download_seo_desc']['cvalue'])){
$description = $config['download_seo_desc']['cvalue'];
}


$cateid = empty($param['id'])?0:$param['id'];

$downloads = db("download")->where(['cate'=>$cateid])->paginate(50);

$files = [];
foreach( $downloads as $key => $val ){
    array_push($files,$val['file_id']);
}
$files = db("fileware")->where('id','in',$files)->column("filename,ext,size,originname,url","id");

<{/php}>



<{include file="../template/public/head.html"}>
<link rel="stylesheet" type="text/css" href="/static/css/css.css" />
<style type="text/css">

    .pro-banner{
        background:url(<{if condition="isset($config.download_banner.cvalue)"}><{$config.download_banner.cvalue}><{/if}>);
        background-size:100% 100%;
    }
    @media (max-width: 1200px) {
        .pro-banner{
            display:none;
            background: url(<{if condition="isset($config.download_banner.cvalue)"}><{$config.download_banner.cvalue}><{/if}>) no-repeat center center !important;
        }
    }



    h1{font-weight: bold !important;}
    table{
        width:100% !important;
    }
    td{
        padding:10px;
    }
    .img-reflect{
        -webkit-box-reflect: below 0 -webkit-linear-gradient(top,rgba(250,250,250,0),rgba(250,250,250,.0) 60%,rgba(250,250,250,0.3));
    }
    .img-reflect-box{
        padding-bottom: 3em;
    }
    .img-reflect-box p{
        margin-top:3em;
    }

    .show-small{
        display:none;
    }
    .what-you-need{
        margin:10px 0;
    }
    .pro-sec .bread-nav.slide-up{
        transform: none;
    }
    @media (max-width: 767px) {
        .show-big {
            display:none;
        }
        .show-small{
            display:block;
            background-size:auto !important;
        }
        .pro-sec section.aftersale{
            height:572px;
        }
        .tab-content #t1 section:not(.mt65) img{
            display:none;
        }
        .pro-sec .single-pro .carousel-desc p{
            text-align: left;
        }

        .tab-content section {
            background: none !important;
            height: auto !important;
        }
        .pro-sec .pro-detail h1{
            font-weight:bold;
        }
    }
    .li-last{
        color: black;  font-size: 18px;
    }
    .download .row{border:1px solid silver;border-bottom:0;padding:10px;}
    .download .row:nth-last-child(1){border-bottom:1px solid silver;}
    .download .row.hd{font-weight: bold;}
    .download {border-bottom:1px solid silver;}
</style>


<!-- header-->
<{include file="../template/public/union_nav.html"}>




<div class="container-fluid">
    <div class="row">
        <div class="banner pro-banner">
            <div class="container">
                <div class="row">
                    <div class="col-sm-7">
                        <div class="text">
                            <h1 class="white"><{if condition="isset($config.download_title.cvalue)"}><{$config.download_title.cvalue}><{/if}></h1>
                            <p><{if condition="isset($config.download_desc.cvalue)"}><{$config.download_desc.cvalue}><{/if}></p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<section id="content" class="mb65">
    <div class="container download">
        <div class="row hd hidden-xs hidden-sm">
            <div class="col-md-3 column"><{:lang('Download_Title')}></div>
            <div class="col-md-3 column"><{:lang('Download_Description')}></div>
            <div class="col-md-3 column"><{:lang('Download_Format')}></div>
            <div class="col-md-3 column"><{:lang('Download_Download')}></div>
        </div>

        <{volist name="$downloads" id="item"}>
        <div class="row hidden-xs hidden-sm">
            <div class="col-md-3 column"><{$item.title}></div>
            <div class="col-md-3 column"><{$item.desc}></div>
            <div class="col-md-3 column"><{$files[$item.file_id]['ext']}></div>
            <div class="col-md-3 column"><a target="_self" href="/index/download/download/id/<{$files[$item.file_id]['id']}>" ><{$files[$item.file_id]['originname']}></a></div>
        </div>

        <div class="hidden-md hidden-lg " style="margin-bottom:10px;">
            <div class="row"><div class="col-sm-6 col-xs-6 "><{:lang('Download_Title')}></div><div class="col-sm-6 col-xs-6"><{$item.title}></div></div>
            <div class="row"><div class="col-sm-6 col-xs-6"><{:lang('Download_Description')}></div><div class="col-sm-6 col-xs-6"><{$item.desc}></div></div>
            <div class="row"><div class="col-sm-6 col-xs-6"><{:lang('Download_Format')}></div><div class="col-sm-6 col-xs-6"><{$files[$item.file_id]['ext']}></div></div>
            <div class="row"><div class="col-sm-6 col-xs-6"><{:lang('Download_Download')}></div><div class="col-sm-6 col-xs-6"><a target="_self" style="text-decoration:underline;" href="/index/download/download/id/<{$files[$item.file_id]['id']}>" ><{$files[$item.file_id]['originname']}></a></div></div>
        </div>

        <{/volist}>

    </div>
</section>



<{include file="../template/public/sidebar.html"}>
<{include file="../template/public/foot.html"}>
